package com.hzc.springchan.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author chen990627
 * @date 2022/10/11
 */
@Data
@Component
@ConfigurationProperties(prefix = "business")
public class BusinessProperties {

    private Test test;

    @Data
    static class Test {

        private String key1;

        private String key2;
    }
}
